<?php
    ob_start();
    session_start();
    
    $_SESSION['filterTrailQuery'] = NULL;
    $_SESSION['length'] = NULL;
    $_SESSION['highest_altitude'] = NULL;
    $_SESSION['difficulty'] = NULL;

    session_write_close();
    header("Location: index.php");
    ob_flush();
?>